var deving_handler = function(){
    Ext.Msg.alert('系统提示', '尚未实现');
};

var default_ajax_request_success_callback=function(response, options) {
    var jsret =  Ext.decode(response.responseText);
    if (jsret.return_type && jsret.return_type==='js' && jsret.run){
        return jsret.run(); //var win = jsret.run();
    } else {
        if (jsret.message){
            Ext.Msg.alert('系统提示', jsret.message);
        }
        if (jsret.errormsg){
            Ext.Msg.alert('错误', jsret.errormsg);
        }
        return false;
    }
};

var default_ajax_request_failure_callback = function(response, options) {
Ext.Msg.alert('错误', '访问错误,请刷新重试!');
console.log(response);
console.log(options);
    if (console){
        console.log(response);
    }
};

//执行远程的json
var execute_remote_extjson = function(options){
    if (Ext.isString(options)){
        options = {url:options};
    }
    var request_options={
        success: default_ajax_request_success_callback,
        failure: default_ajax_request_failure_callback
    };
    Ext.apply(request_options,options);
    Ext.Ajax.request(request_options);
};
